function HelpController(helpDialog, helpIcon) {
    this._helpIcon = helpIcon;
    this._dialog = helpDialog;
}

HelpController.prototype = {
    register : function() {
        var me = this;
        this._dialog.createDialog();

        this._helpIcon.onClick(function(){
            var helpIconOffset = me._helpIcon.offset();
            var left = helpIconOffset.left + me._helpIcon.getDom().width();
            var top = helpIconOffset.top + me._helpIcon.getDom().height();
            me._dialog.showDialog({top: top, left: left});
        });
    }
};